{% extends 'AdminBundle::layout.html.twig' %}

{% block title %}首页{% endblock %}

{% block css %}
<style type="text/css">
    .new-list-box{
        min-height: 396px;
    }
</style>
{% endblock %}

{% block top %}
    {#{{ dump() }}#}
    {{ parent() }}
{% endblock %}



    {% block left_body_top %}
        {{ parent() }}
    {% endblock %}

    {% block left_body %}
        {{ parent() }}
    {% endblock %}

    {% block right_body %}
    <div class="page-header">
        <div class="page-right-top">
            <div class="right-top">
                <span class="right-title">科技小桌板</span>
            </div>
        </div>
        <div class="main-content">
            <div class="index-list-box">
                <div class="main-top">
                    <div class="index-list index-m1">
                        <div class="index-total">企业总数</div>
                        <div class="index-totalNum">
                            <span>{{ data.company_count }}</span>个
                        </div>
                    </div>
                    <div class="index-list index-m2">
                        <div class="index-total" style="padding-top: 11px;">科技联络人总数</div>
                        <div class="index-totalNum">
                            <span>{{ data.teac_member_count }}</span>个
                        </div>
                    </div>
                    <div class="index-list index-m3">
                        <div class="index-total">企业联络人总数</div>
                        <div class="index-totalNum">
                            <span>{{ data.company_member_count }}</span>个
                        </div>
                    </div>
                    <div class="index-list index-m4">
                        <div class="index-total">申报项目个数</div>
                        <div class="index-totalNum">
                            <span>{{ data.project_count }}</span>个
                        </div>
                    </div>
                </div>

                <div class="main-bottom">
                    <div class="new-list-box">
                        <div class="new-title">
                            <span class="p-border border-blue"></span>
                            最近发布-<span class="i-mes">消息通知</span>
                        </div>
                        <div class="new-list">
                            <div class="new-fl fl">消息标题</div>
                            <div class="new-fr fr">发布时间</div>
                        </div>
                        {% for item in data.article %}
                        <a class="new-ul">
                            <div class="new-fl fl a-line">{{ item.title }}</div>
                            <div class="new-fr fr fs12">{{ item.created_time }}</div>
                        </a>
                        {% endfor %}

                    </div>

                    <div class="new-list-box">
                        <div class="new-title">
                            <span class="p-border border-green"></span>
                            最近发布-<span class="i-mes">文件消息</span>
                        </div>
                        <div class="new-list">
                            <div class="new-fl fl">文件标题</div>
                            <div class="new-fr fr">发布时间</div>
                        </div>

                        {% for item in data.file %}
                        <a class="new-ul">
                            <div class="new-fl fl a-line">{{ item.title }}</div>
                            <div class="new-fr fr fs12">{{ item.created_time }}</div>
                        </a>
                        {% endfor %}

                    </div>

                    <div class="new-list-box" style="margin-right: 0;">
                        <div class="new-title">
                            <span class="p-border border-orange"></span>
                            <span class="i-mes">最近新增企业</span>
                        </div>
                        <div class="new-list">
                            <div class="new-fl fl">企业名称</div>
                            <div class="new-fr fr">添加时间</div>
                        </div>

                        {% for item in data.new_company %}
                        <a class="new-ul">
                            <div class="new-fl fl a-line">{{ item.name }}</div>
                            <div class="new-fr fr fs12">{{ item.created_time }}</div>
                        </a>
                        {% endfor %}


                    </div>
                </div>
            </div>
        </div>
    </div>

    {% endblock %}



{% block box %}
{% endblock %}


{% block javascript %}
<script>
    $(function() {
        SidebarHighlighting('1');
    })
</script>
{% endblock %}